override-build exits prematurely, part build succeeds
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
I recently worked with a customer to help them enable video accelerated playback on a their device running Ubuntu Core, and one of the changes necessary was to switch from standard Flutter to a fork called Flutter-elinux which provides a new backend which doesn't rely on GTK.
I ran into a problem with their snap build which I haven't yet been able to root cause. For the sake of this bug, I'm using the workshops snap maintained by the Ubuntu Desktop team, as it exhibits the same behavior as the customer's snap when I update it to use flutter-elinux.
The problem I'm seeing is that when the workshops part runs, the override-build scriptlet exits prematurely, yet snapcraft seems to think the build of the part was successful. This results in the snap build failing because the actual binary 'bin/workshops', isn't found when the snap is packed.
Note - the customer found a workaround, namely to run the first flutter-elinux command (e.g. `flutter-elinux precache`) in an override-stage scriptlet in the flutter-git part, however I would still like to figure out why an override-build scriptlet could exit prematurely, but not trigger a build stage failure.
Snapcraft version: 7.x
Core: 22
Build machine: 22.04 LTS Desktop
Extensions: gnome
Workshop/flutter-elinux branch that fails:
https://github.com/tonyespy/workshops/tree/flutter-elinux
Workshop/flutter-elinux branch that works:
https://github.com/tonyespy/workshops/tree/flutter-elinux-fix
Evaluation history
No evaluation history available.